package jblip.gui.data.channels;

import jblip.gui.JBlip;
import jblip.resources.Update;

public class DashboardChannel extends UpdatesDataChannel {
  DashboardChannel() {
    super("Kokpit");
  }

  @Override
  protected Iterable<? extends Update> getUpdates() {
    return JBlip.instance().getBlipClient().pollDashboard(null, 15, null);
  }

  @Override
  protected Iterable<? extends Update> getUpdates(final int last_update_id) {
    return JBlip.instance().getBlipClient().pollDashboard(
        last_update_id, null, null);
  }

}
